package name.as3.frameworkTest.commands
{
import name.as3.cmdFrameworks.addins.mediator.View2CenterAddin;
import name.as3.cmdFrameworks.interfaces.addins.IMediatorAddin;
import name.as3.cmdFrameworks.interfaces.INotification;
import name.as3.frameworkTest.enums.UIPanelType;
import name.as3.frameworkTest.mediators.MainPanelMediator;
import name.as3.frameworkTest.view.MainPanel;
import name.as3.frameworkTestSupport.command.TestAppCommand;

public class OnLoginOKCommand extends TestAppCommand
{
	/**
	 *
	 */
	public function OnLoginOKCommand()
	{
		super();
	}
	
	override public function execute(obNote:INotification):void
	{
		this.uiManager.switchMediator([UIPanelType.LoginPanel, UIPanelType.CreatePanel],
									null,
									UIPanelType.MainPanel,
									new MainPanelMediator(),
									new MainPanel(), 
									Vector.<IMediatorAddin>([new View2CenterAddin()]) );
	}
}
}